package com.sysu.ooad.service;

import java.util.List;

import com.sysu.ooad.entity.Course;
import com.sysu.ooad.entity.Group;
import com.sysu.ooad.entity.Student;

public interface GroupService {
	public boolean create(Student s, String groupName);
	public boolean join(Student s, Group g);
	public boolean leave(Student s);
	public boolean dissolve(Group g);
	public List<Group> findByCourse(Course c);
	public Group getById(Integer id);
	public boolean lockAll(Course c, boolean locked);
	public boolean lock(Group g, boolean toLock);
}
